Grid - custom data models

Instead of using built-in data models you can create your own objects and use them as control data sources.

	var cells = {
		getText: function(col, row){return "cell-" + col + "-" + row},
		getImage: function(col, row){return "favorites"},
		getTooltip: function(col, row){return "tooltip text"}
	}
	...
	grid.setCellModel(cells);

Back to examples